package org.ht.demo.openapi.bean;

import lombok.Data;

@Data
public class BaseDevice {

    private Integer messagetype;   //事件类型

    private String mac;

    private String imei; // IMEI 号

    private String imsi; //卡号IMSI

    private String version=""; // 硬件版本号

    private String ccid=""; // SIM 卡 CCID 号码

    private String codetype;//

    private Integer type;

    private Integer dsignal; // 信号强度 0-5

    private Integer signal; // 信号强度 0-5

    private Integer signalvalue; // 信号具体值

    private Integer batterys; // 电池是否低压 1 表是正常，0 表示低压【10 进制】 低压报警

    private Integer voltagevalue; // 电压具体值

    private Integer volvalue;//电流百分比

//    private Integer rsrp; //信号强度-140~-40
//
//    private Integer sinr;//信噪比-20~30

    private String nbversion; // nb硬件版本号

    private String metadataListJson;     //  模型JSON

    private String command;     //


    @Override
    public String toString() {
        return "BaseDevice{" +
                "mac='" + mac + '\'' +
                ", imei='" + imei + '\'' +
                ", version='" + version + '\'' +
                ", ccid='" + ccid + '\'' +
                ", codetype='" + codetype + '\'' +
                ", type=" + type +
                ", dsignal=" + dsignal +
                ", signal=" + signal +
                ", signalvalue=" + signalvalue +
                ", batterys=" + batterys +
                ", voltagevalue=" + voltagevalue +
                ", nbversion='" + nbversion + '\'' +
                ", command='" + command + '\'' +
                '}';
    }
}
